package com.springboot.mybatis.service.impl;

import com.springboot.mybatis.dao.User;
import com.springboot.mybatis.mapper.UserMapper;
import com.springboot.mybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int insertuser(User user) {
        return userMapper.insertuser(user);
    }

    @Override
    public User selectuser(Long id) {
        return userMapper.selectuser(id);
    }
}
